// 创建pinia实例

import { createPinia } from 'pinia'
//1.创建pinia实例
const pinia = createPinia()

//导入数据持久化插件
import persis from 'pinia-plugin-persistedstate'

//注册持久化插件

pinia.use(persis)
//2.导出pinia实例

export default pinia

//在index。js对modules中store仓库做统一导出
export * from './modules/user'
export * from './modules/article'
